package com.woniu.new_orange.finance_model_guo.controller;

import com.woniu.new_orange.entity.Bank;
import com.woniu.new_orange.finance_model_guo.service.BankService;
import com.woniu.new_orange.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Program: new_orange->BankController
 * @Description: 银行信息
 * @Author: 谭少琛的爸爸
 * @Date: 2023-02-02 14:24
 * @Version： 1.0
 **/
@RestController
@RequestMapping("bank")
@Api(tags = "银行信息表")
public class BankController {
    @Resource
private BankService bankService;
    @ApiOperation(value = "查全部",notes = "进行查询全部")
    @GetMapping("queryAll")
    public Result query(){
        List<Bank> BankList = bankService.selectAll();
        return Result.ok().data("BankList",BankList);
    }
}
